package co.yixiang.modules.activity.service.dto;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @ClassName 团长拼团数据PinkAllDto
 * @Author hupeng <610796224@qq.com>
 * @Date 2020/6/20
 **/
@Getter
@Setter
public class PinkAllDto {
    List<PinkDto> list; // list-团长参与的列表
    List<Long> pindAll; //pindAll-参与的拼团的id 集合

    PinkAllDto(List<PinkDto> list, List<Long> pindAll) {
        this.list = list;
        this.pindAll = pindAll;
    }

    public static PinkAllDtoBuilder builder() {
        return new PinkAllDtoBuilder();
    }

    public static class PinkAllDtoBuilder {
        private List<PinkDto> list;
        private List<Long> pindAll;

        PinkAllDtoBuilder() {
        }

        public PinkAllDtoBuilder list(List<PinkDto> list) {
            this.list = list;
            return this;
        }

        public PinkAllDtoBuilder pindAll(List<Long> pindAll) {
            this.pindAll = pindAll;
            return this;
        }

        public PinkAllDto build() {
            return new PinkAllDto(list, pindAll);
        }

        public String toString() {
            return "PinkAllDto.PinkAllDtoBuilder(list=" + this.list + ", pindAll=" + this.pindAll + ")";
        }
    }
}
